import type { App } from 'vue'
import copy from '@/directives/copy'
// import buttonPermission from '@/directives/buttonPermission'
import debounce from '@/directives/debounce'
import throttle from '@/directives/throttle'

export default function setupDirectives(app: App) {
  // 按钮权限指令
  // app.directive('buttonPermission', buttonPermission)
  // 复制指令
  app.directive('copy', copy)
  // 防抖指令
  app.directive('debounce', debounce)
  // 节流指令
  app.directive('throttle', throttle)
}
